import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SEntityKillerInfo
    
    export  class SEntityKillerInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SEntityKillerInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeInt(this.camp);
            arg1.writeInt(this.level);
            arg1.writeString(this.name);
            arg1.writeInt(this.force);
            arg1.writeInt(this.waitSec);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.camp = arg1.readInt();
            this.level = arg1.readInt();
            this.name = arg1.readString();
            this.force = arg1.readInt();
            this.waitSec = arg1.readInt();
            return;
        }

        public /* const */_type: int=55;

        public /* var */entityId: SEntityId;

        public /* var */camp: int;

        public /* var */level: int;

        public /* var */name: string;

        public /* var */force: int;

        public /* var */waitSec: int;

        public static /* var */_regist: SEntityKillerInfo;
    }

            SEntityKillerInfo._regist = new SEntityKillerInfo(true);
        